export var instStatusColor={};
import I18Parse from './i18Parse';
import mobileJsLang from "../locales/lang/impl/js/mobileJsLang";
let lang = mobileJsLang;
let i18n=function (langKey,text) {
	return I18Parse.getI18Val(lang.mobileJsLang,langKey, text)
}
instStatusColor={
	'RUNNING':{
		color:'#cf1322',
		background:'#fff1f0',
		name:i18n('running','运行中'),
		i18nKey:'running'
	},
	'SUCCESS_END':{
		color:'#389e0d',
		background:'#f6ffed',
		name:i18n('success','成功'),
		i18nKey:'success'
	},
	'CMU':{
		color:'#fff',
		background:'#8bc34a',
		name:i18n('communicated','被沟通'),
		i18nKey:'communicated'
	},
	'CMUSEND':{
		color:'#fff',
		background:'#03a9f4',
		name:i18n('interact','沟通发出'),
		i18nKey:'interact'
	},
	'APP':{
		color:'#fff',
		background:'#FFC107',
		name:i18n('pendApprove','待审批'),
		i18nKey:'pendApprove'
	},
	'CANCEL_END':{
		color:'#fff',
		background:'#de1d0a',
		name:i18n('abnormal','异常结束'),
		i18nKey:'abnormal'
	},
	'AGENT':{
		color:'#fff',
		background:'#ffa169',
		name:i18n('deputy','代办'),
		i18nKey:'deputy'
	},
	'DISCARD_END':{
		color:'#fff',
		background:'#de0e34',
		name:i18n('cancelEnd','作废结束'),
		i18nKey:'cancelEnd'
	},
	'UNHANDLE':{
		color:'#fff',
		background:'#3dc976',
		name:i18n('waitToDo','待办'),
		i18nKey:'waitToDo'
	},
	'HANDLE':{
		color:'#fff',
		background:'#487cff',
		name:i18n('processing','处理中'),
		i18nKey:'processing'
	},
	'ABORT_END':{
		color:'#fff',
		background:'#dc829f',
		name:i18n('abort','异常中止'),
		i18nKey:'abort'
	},
	'transfer':{
		color:'#fff',
		background:'#53cad8',
		name:i18n('transfer','转办'),
		i18nKey:'transfer'
	},
	'agent':{
		color:'#fff',
		background:'#9890ff',
		name:i18n('agent','代理'),
		i18nKey:'agent'
	},
	'AGREE':{
		color:'#fff',
		background:'#3dc976',
		name:i18n('pass','通过'),
		i18nKey:'pass'
	},
	'DRAFT':{
		color:'#fff',
		background:'gray',
		name:i18n('draft','草稿'),
		i18nKey:'draft'
	},
	'SUPSPEND':{
		color:'#fff',
		background:'#000000',
		name:i18n('suspend','暂停'),
		i18nKey:'suspend'
	},
	'SKIP':{
		color:'#f5222d;',
		background:'#ffd6d4',
		name:i18n('skip','跳过'),
		i18nKey:'skip'
	},
	'REPLY_COMMUNICATE':{
		color:'#399bff;',
		background:'#e7f3ff',
		name:i18n('replyComm','回复沟通'),
		i18nKey:'replyComm'
	},
	'CANCEL':{
		color:'#fff',
		background:'#de0e34',
		name:i18n('cancel','作废'),
		i18nKey:'cancel'
	},
	'BACK':{
		color:'#999;',
		background:'#f1f1f1',
		name:i18n('btnReject','驳回'),
		i18nKey:'btnReject'
	},
	'1':{
		color:'#f5222d;',
		background:'#ffa39e',
		name:i18n('unprocessed','未处理'),
		i18nKey:'unprocessed'
	},
	'INVALID':{
		color:'#fff;',
		background:'grey',
		name:i18n('invalid','失效'),
		i18nKey:'invalid'
	},
	'DEPLOYED':{
		color:'#fff',
		background:'#3dc976',
		name:i18n('publish','发布'),
		i18nKey:'publish'
	},
	'LINKUP':{
		color:'#f5222d;',
		background:'#ffd6d4',
		name:i18n('btnCommu','沟通'),
		i18nKey:'btnCommu'
	},
	'TRANSFER':{
		color:'#f5222d;',
		background:'#ffd6d4',
		name:i18n('transfer','转办'),
		i18nKey:'transfer'
	},
	'ROAM_TRANSFER':{
		color:'#f5222d;',
		background:'#ffd6d4',
		name:i18n('flow','流转'),
		i18nKey:'flow'
	},
	'DRAFTED':{
		color:'#fff',
		background:'gray',
		name:i18n('draft','草稿'),
		i18nKey:'draft'
	},
	'COPY':{
		color:'#52c41a',
		background:'#f6ffed;',
		name:i18n('cc','抄送'),
		i18nKey:'cc',
		border:'#52c41a'
	},
	'TURN_TO':{
			color:'#f5222d',
			background:'#fff1f0;',
			name:i18n('forward','转发'),
			i18nKey:'forward',
			border:'#ffa39e'
		},
	'BACK_TO_STARTOR':{
			color:'#f5222d',
			background:'#fff1f0;',
			name:i18n('reject','驳回到发起人'),
			border:'#ffa39e',
			i18nKey:'reject',
		},
		'LOCKED':{
            color:'#fff',
            background:'#000000',
			name:i18n('lock','锁定'),
			border:'#ffa39e',
			i18nKey:'lock'
		},
	'REFUSE':{
		color:'#f5222d',
		background:'#ffd6d4',
		name:i18n('refuse','反对'),
		border:'#ffa39e',
		i18nKey:'refuse'
	},'RESTORE':{
		color:'#fff',
		background:'#8bc34a',
		name:i18n('recover','恢复'),
		i18nKey:'recover'
	},'PENDING':{
		color:'#fff',
		background:'#487cff',
		name:i18n('btnPending','挂起'),
		i18nKey:'btnPending'
	},'SUCCESS':{
        color:'#389e0d',
        background:'#f6ffed',
		name:i18n('success','成功'),
		i18nKey:'success'
	},'INTERPOSE':{
        color:'#f5222d',
        background:'#ffd6d4',
        name:i18n('interpose','干预'),
        border:'#ffa39e',
        i18nKey:'interpose'
    },'ERROR':{
        color:'#f5222d',
        background:'#ffd6d4',
        name:i18n('error','失败'),
        border:'#ffa39e',
        i18nKey:'error'
    },'BACK_SPEC':{
        color:'#f5222d',
        background:'#ffd6d4',
        name:i18n('BACK_SPEC','驳回节点'),
        border:'#ffa39e',
        i18nKey:'BACK_SPEC'
    },'SUBMIT':{
        color:'#fff',
        background:'#8bc34a',
        name:'提交',
        i18nKey:'communicated'
    },'INVOKE_TO_STARTOR':{
        color:'#cf1322',
        background:'#fff1f0',
        name:i18n('INVOKE_TO_STARTOR','撤回(发起人)'),
        i18nKey:'INVOKE_TO_STARTOR'
    },
    'RECOVER':{
        color:'#cf1322',
        background:'#fff1f0',
        name:i18n('RECOVER','撤回'),
        i18nKey:'RECOVER'
    }
}

instStatusColor.getNameByI18nKey=function (langKey,text){
	return i18n(langKey, text)||text;
}
